<template>
	<!-- banner详情 -->
	<view class="page">
		<!-- <image :src="vuex_imgUrl+detail.image" mode="widthFix"></image> -->
		<u-parse :content="detail.content"></u-parse>
	</view>
</template>

<script>
	export default {
		name: "bannerDetail",
		data() {
			return {
				bannerId: 0,
				detail: ''
			};
		},
		onLoad(options) {
			this.bannerId = options.bannerId
			this.get()
		},
		onShow() {},
		methods: {
			get() {
				console.log(this.bannerId)
				this.$api.getbannerById({
					id: this.bannerId
				}).then(res => {
					console.log(res.data)
					this.detail = res.data
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	image {
		width: 100vw;
	}
</style>